package com.woniuxy.educationplatform.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
public class KnowpointBean implements Serializable {
    private Long id;
    private String knowpointNo;
    private String knowpointName;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") //返回时间类型
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") //接收时间类型
    private Date createTime;
    private SubjectBean subjectBean;
}
